// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data.MySql
{
    /// <summary>
    ///     Represents the options for the MySqlDataContext object.
    /// </summary>
    public class MySqlDataContextOptions : DataContextOptions
    {
        /// <summary>
        ///     Initializes a new instance of the MySqlDataContextOptions class by passing the 
        ///     connection string as a parameter.
        /// </summary>
        /// <param name="connectionString">
        ///     A string containing connection information about how to connect to the data source.
        /// </param>
        public MySqlDataContextOptions(string connectionString) :
            base(DatabaseType.MySql)
        {
            this.ConnectionString = connectionString;
        }
    }

    /// <summary>
    ///     Represents the options for the MySqlDataContext object.
    /// </summary>
    /// <typeparam name="TAdoDbContext"></typeparam>
    public class MySqlDataContextOptions<TAdoDbContext> : MySqlDataContextOptions, IDataContextOptions<TAdoDbContext>
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="MySqlDataContextOptions{TAdoDbContext}"/> class by passing the 
        ///     connection string as a parameter.
        /// </summary>
        /// <param name="connectionString">
        ///     A string containing connection information about how to connect to the data source.
        /// </param>
        public MySqlDataContextOptions(string connectionString) :
            base(connectionString)
        {
        }
    }
}
